// @ts-ignore
/* eslint-disable */
import request from "@/request";

/** getKnowledgeDetail GET /api/knowledge/detail */
export async function getKnowledgeDetailUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getKnowledgeDetailUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseKnowledgeDetailVO_>("/api/knowledge/detail", {
    method: "GET",
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** getKnowledgeGraph GET /api/knowledge/graph */
export async function getKnowledgeGraphUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getKnowledgeGraphUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseKnowledgeGraphVO_>("/api/knowledge/graph", {
    method: "GET",
    params: {
      // mode has a default value: all
      mode: "all",
      ...params,
    },
    ...(options || {}),
  });
}
